#!/usr/bin/python3

###################################
# 错误和异常
try:
    num = 6
    if num > 5:
        raise Exception('num can not be greater than 5!')
except Exception as e:
    print('Exception: {}'.format(e))
else:
    print('num is less than 5!')
finally:
    print('finally always execute')
